<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">项目负责人及主要研究人员近三年已完成的相关课题</div>
<table  id="tblEuipmentLists" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="4%">选择</th>
						<th class="TblHead" align="center"  width="4%">序号</th>
						<th class="TblHead" align="center"  width="9%">姓名</th> 
						<th class="TblHead" align="center"  width="9%">项目编号</th>  
				      <th class="TblHead" align="center"  width="9%">项目名称</th> 
						<th class="TblHead" align="center"  width="9%">项目（课题）类型</th>
						<th class="TblHead" align="center"  width="9%">完成时间</th>    
						<th class="TblHead" align="center"  width="9%">负责或参加</th>             
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none" align="center">
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name="selEuipmentLists" >
						</td>
						<td align="center">&nbsp;
							<span name="euipments|list[0]@seq_no" >[index]</span> 
						</td>
						<td align="center">
							<input type="text" name="euipments|list[0]|name" label="姓名" class=" required input_text " maxlength="50" style="width:80%"/>
						</td>
						
						<td align="center">
							<input type="text" name="euipments|list[0]|model" label="项目编号" class=" input_text required" maxlength="50" style="width:80%"/>
						</td>
						
						<td align="center">
							<input type="text" name="euipments|list[0]|price" label="项目名称"  class="input_text required"  maxlength="50" style="width:80%" />
						</td> 
					
						<td align="center">
							<input type="text" name="euipments|list[0]|remark" label="项目（课题）类型"  class=" input_text required" maxlength="50" style="width:80%"/>
						</td> 
						<td align="center" nowrap>
						
							<input  id="list_start_date_[0]" name="euipments|list[0]|start_date" label="完成时间" value="" class=" required input_text date " style="width:65px" />
						</td>
                     
						<td align="center">
							<cpt:select id="fzcj[index]" name="fzcj" key="fzcj" onChange="initControlValue(this.id);" style="width:95%"></cpt:select>
							<input type="hidden" name="euipments|list[0]|fzcj_value" class="required" label="负责或参加" value=""/>
							<input type="hidden" name="euipments|list[0]|fzcj_name" value=""/>
						</td>
						
					</tr>
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/euipments/list" var="list">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr align="center">
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name="selEuipmentLists" >
						</td>
						<td align="center">&nbsp;
							<span name="euipments/list[${flag}${index}]@seq_no" ><x:out select="$list/@seq_no"/></span> 
						</td>
						<td>
							<input type="text" name="euipments/list[${flag}${index}]/name"  label="姓名" style="width:80%"   class="input_text required" value="<x:out select="$list/name" />" maxlength="50"/>
						</td>
						
						<td>
							<input type="text" name="euipments/list[${flag}${index}]/model"  label="项目编号" style="width:80%"   class=" input_text required" value="<x:out select="$list/model" />" maxlength="50"/>
						</td>
						
						<td >
							<input type="text" name="euipments/list[${flag}${index}]/price"   label="项目名称"   style="width:80%"  class="input_text required" value="<x:out select="$list/price" />" maxlength="50"/>
						</td> 
						
						<td>
							<input type="text" name="euipments/list[${flag}${index}]/remark"  label="项目（课题）类型"  style="width:80%"   class=" input_text required" value="<x:out select="$list/remark" />" maxlength="50"/>
						</td> 
						<td align="center" nowrap><c:set var="start_date" scope="page"><x:out select="$list/start_date"/></c:set>
							<input  id="list_start_date_[${flag}${index}]" value="${start_date}" name="euipments/list[${flag}${index}]/start_date" class="required date input_text" style="width:65px" label="完成时间" /> 
						</td>
						<td align="center">
							<%-- <input name="zh_persons/zh_person[${flag}${index}]/gender" style="width:95%;" value="<x:out select="$zh_person/gender" />" /> --%>
						
							<c:set var="fzcj_value"><x:out select="$list/fzcj_value" /></c:set>
					   	<cpt:select id="fzcj${index}" key="fzcj" name="fzcj" onChange="initControlValue(this.id);" style="width:95%"></cpt:select>
				         <input type="hidden"    name="euipments/list[${flag}${index}]/fzcj_value" class="required" label="参与人" value="<x:out select="$list/fzcj_value" />"/>
				         <input type="hidden"    name="euipments/list[${flag}${index}]/fzcj_name" value="<x:out select="$list/fzcj_name" />"/>
					
						</td>
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					<script type="text/javascript">
						showAllDateTag("tblEuipmentLists");
					</script>
				</tbody>
					</table>
					<table width="98%" align="center" border="0">
					<tr style="border: 0"><td style="border: 0">
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="addNewRow('tblEuipmentLists');showDateTag('tblEuipmentLists');try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblEuipmentLists','selEuipmentLists')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblEuipmentLists','selEuipmentLists')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblEuipmentLists','条数据');">
					</td></tr>
	</table>
	
